﻿/// <reference path="duomi.common.js" />
/*************************************************************
Base Common bootstrap V3 model Js.
模式窗口类
Create By Ming.ma
2014-09-02 V1.0
*************************************************************/
Namespace.register("$ext.mload");

(function (window) {
    "use strict";
    $ext.mload = {
        $description: '加载中等待插件',
        $author: 'Ming.ma',
        $version: '1.0.0',
        //创建load对象
        create: function () {
            createMLoadDiv();
            return {close};
        }
    };

    function createMLoadDiv(option) {
        var bgDiv = $dom.CE("div", { 'class': 'modal-backdrop fade in text-center','style:':'display:none' });
        var loadImg = $dom.CE("img", { 'src': 'http://img.lanrentuku.com/img/allimg/1212/5-121204193R5-50.gif' });
        bgDiv.appendChild(loadImg);
        document.body.appendChild(bgDiv);
        $(bgDiv).fadeIn("slow");
    }



    function leftCopyJson(jsn1, jsn2) {
        var jsn = {};
        for (var j in jsn1)
            jsn[j] = $object.isNull(jsn2 && jsn2[j]) ? jsn1[j] : jsn2[j];
        return jsn;
    }
})(window);